package com.wn.mine.repository.module

import com.wn.mine.repository.IMineRepository
import com.wn.mine.repository.MineRepository
import dagger.Binds
import dagger.Module
import dagger.hilt.InstallIn
import dagger.hilt.android.components.ViewModelComponent
import dagger.hilt.android.scopes.ViewModelScoped

/**
 * @Author: wn
 * @Date: 2023/5/31 17:06
 * @Description: 在这个模块当中提供 IMineRepository 接口所需要的实例
 */
@Module
@InstallIn(ViewModelComponent::class)
abstract class RepositoryModule {
  @ViewModelScoped
  @Binds
  abstract fun bindRepository(repository: MineRepository): IMineRepository
}